<template>
  <div id="app">
    <!-- <router-view /> -->
    <transition>
      <!-- :name="transitionName" -->
      <router-view></router-view>
    </transition>
    <!-- <transition name="fade" mode="out-in" appear>
            <component :is="view"></component>
        </transition> -->
  </div>
</template>

<script>
export default {
  name: "App",
  return: {
    data() {
      // transitionName: ''
    },
  },
  watch: {
    // $route(from, to) {
    //     if (from.meta.zIndex < to.meta.zIndex) {
    //         this.transitionName = 'slide-top';
    //     } else {
    //         this.transitionName = 'slide-bottom';
    //     }
    // }
  },
  mounted() {
  },
  methods: {
    transformData(array) {
      if (isArray(array)) {
        array.forEach((element) => {
          element.value = element.id;
          element.label = element.name;
        });
      } else {
        this.transformData(array);
      }
    },
  },
};
</script>

<style>
@import url(../src/style/less/variable.less);

html,
body,
#app {
  width: 100%;
  height: 100%;
  min-width: 1440px;
  min-height: 900px;
  /* overflow: hidden; */
}

* {
  box-sizing: border-box;
}

.slide-top-enter-active,
.slide-top-leave-active,
.slide-bottom-enter-active,
.slide-bottom-leave-active {
  will-change: transform;
  transition: all 500ms;
  position: absolute;
  z-index: 0;
}

.slide-top-enter {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
  /* transform: rotateZ(100deg); */
  /* background-color: red; */
  /* transform: scaleY(1); */
}

.slide-top-leave-active {
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  /* transform: rotateZ(200deg); */
  /* background-color: sandybrown; */
  /* transform: scaleY(0); */
}

.slide-bottom-enter {
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  /* transform: rotateZ(0deg); */
}

.slide-bottom-leave-active {
  opacity: 0;
  /* transform: rotateZ(180deg); */
  transform: translate3d(0, -100%, 0);
}

.cursor-hand {
  cursor: pointer;
}

/* 滚动条 */
::-webkit-scrollbar {
  height: 9px !important;
  width: 9px !important;
}

::-webkit-scrollbar-thumb {
  border-radius: 0;
  border-style: dashed;
  background-color: rgba(157, 165, 183, 0.4);
  border-color: transparent;
  border-width: 1.5px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(157, 165, 183, 0.7);
}
</style>
